//parallel arrays //multiple arrays that represent different attributes of //a individual items #include using namespace std; void main() { int hNumbers[10]; int ages[10]; for (int i = 0; i < 10; i++) { cout << "H-Number? "; cin >> hNumbers[i]; cout << "Age? "; cin >> ages[i]; } char userCommand; int hNumber; do { cout << "F - Find an age" << endl; cout << "Q - Quit" << endl; cout << ">"; cin >> userCommand; if (userCommand == 'F') { //look though the list for an H number cout << "Enter an H-Number to find its age: "; cin >> hNumber; bool hNumberFound = false; for (int i = 0; i < 10; i++) { if (hNumbers[i] == hNumber) { cout << "Age for " << hNumber << " is " << ages[i] << endl; hNumberFound = true; } } if (!hNumberFound) { cout << "H-Number not found" << endl; } } } while (userCommand != 'Q'); }